import QtQuick 1.1
import com.nokia.symbian 1.1

Dialog {
    id: root

    //property alias text: text.text
    property alias title: about.text

    width: parent.width
    height: parent.height

    title: Text {
        id: about
        anchors.horizontalCenter: parent.horizontalCenter
        font.pointSize: 14
        color: "white"
        text: qsTr("About");
    }

    content: Item{
        id:name
        width: parent.width
        Column{
            anchors.fill: parent
            spacing: 7
            Text{
                anchors.horizontalCenter: parent.horizontalCenter
                text: qsTr("Group My Pictures v0.2")
                font.bold: true
                color: "white"
                wrapMode: Text.WordWrap
            }
            Text{
                anchors.horizontalCenter: parent.horizontalCenter
                text: qsTr("Copyright (C) 2012 Juhana Paavola")
                color: "white"
                wrapMode: Text.WordWrap
            }
            Text{
                anchors.horizontalCenter: parent.horizontalCenter
                text: qsTr("<juhana.paavola@gmail.com>")
                color: "white"
                wrapMode: Text.WordWrap
            }
            Text{
                anchors.horizontalCenter: parent.horizontalCenter
                text: qsTr("License")
                font.bold: true
                color: "white"
                wrapMode: Text.WordWrap
            }
            Text{
                anchors.horizontalCenter: parent.horizontalCenter
                text: qsTr("LGPL v3.0")
                color: "white"
                wrapMode: Text.WordWrap
            }
            Text{
                anchors.horizontalCenter: parent.horizontalCenter
                text: qsTr("Disclaimer & Warranty")
                font.bold: true
                color: "white"
                wrapMode: Text.WordWrap
            }
            Text{
                anchors{
                    left:parent.left
                    right:parent.right
                }

                text: qsTr("Absolutely no warranty, not any kind. I will not be responsible if you break or damage you, hardware or something else somehow. You use software at your own risk.")
                wrapMode: Text.WordWrap
                color: "white"
            }
        }
    }

    buttons: ButtonRow{
        anchors.horizontalCenter: parent.horizontalCenter
        Button{text: qsTr("Close"); onClicked: root.accept();}
    }
}
